package com.homestead.enums;

import com.homestead.exception.ResponseErrorCode;

/**
 * @author HanBin_Yang
 * @since 2021/4/10 21:35
 */
public enum OrgInfoErrorCode implements ResponseErrorCode {
    /**
     * 组织异常
     */
    PARENT_ORG_NOT_EXIST("OI0001", "父级组织不存在"),
    PARENT_ORG_CODE_ERROR("OI0002", "请填入正确的父级组织编码"),
    PARENT_ORG_CODE_NULL("OI0003", "父级组织编码不能为空"),
    ;


    private String code;

    private String message;

    OrgInfoErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
